package com.sheep.classroompie.repository;


import com.sheep.classroompie.entity.Course;
import com.sheep.classroompie.entity.Exam;
import com.sheep.classroompie.entity.Question;
import com.sheep.classroompie.entity.SubmitExam;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ExamRepository {
  Boolean addExam(Exam exam);
  //查找题目
  Question selectQuestionById(Integer questionId);

  //根据课程id查询测试
  List<Exam> selectExamsByCourseId(String courseId);
  //根据id查询考试
  Exam selectExamById(Integer examId);

  void submitExam(SubmitExam submitExam);

  List<SubmitExam> selectSubmitExamsByCourseId(SubmitExam submitExam);
//  //查询试卷
//  SubmitExam selectExamById(SubmitExam submitExam);
}
